﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ListSanPham.ascx.cs" Inherits="but_SANPHAM_ListSanPham" %>
<%@ Register Namespace="ASPnetControls" Assembly="ASPnetPagerV2_8" TagPrefix="cc" %>
<link href="css/DarkStyle.css" type="text/css" rel="stylesheet" />
<div id="list_Sp" class="SPBox">
    <div class="Title"> DANH SÁCH SẢN PHẨM </div>
    <div class="box">
        <asp:Repeater runat="server" ID="rptSanPham">
        <ItemTemplate>
            <div class="sp">
                <div class="SPThumbnail">
                    <a class="SPTen" href="ProductDetail.aspx?prdId=<%#DataBinder.Eval(Container.DataItem,"Id")%>">
                        <img width="100px" height="120px" style="border: 1px solid #333333;" src='<%#TTQT.TTQT_Code.TTQTCommon.isNull(Eval("PicUrl"),"").Replace("../","")%>' />
                    </a>
                </div>
                Tên SP: <a class="SPTen" href="ProductDetail.aspx?prdId=<%#DataBinder.Eval(Container.DataItem,"Id")%>">
                    <%#DataBinder.Eval(Container.DataItem,"TenHang")%></a> 
                <br/>
                Mã SP: <span  class="Ma_Sp"><%#DataBinder.Eval(Container.DataItem, "Seri").ToString()%></span>
                <p style="margin-top:10px;display: none;">
                    <%#firstWords(DataBinder.Eval(Container.DataItem, "TomLuoc").ToString(),120)%>
                    <br />
                </p>
                <br/>
                    <span style="color:#B1B1B1">Giá&nbsp:&nbsp</span><span class="SPGiaNum">
                        <%#TTQT.TTQT_Code.TTQTCommon.formatTien_KhongThapPhan(DataBinder.Eval(Container.DataItem, "GiabanThamKhao").ToString())%>&nbspVNĐ</span>
                
            </div>
        </ItemTemplate>
    </asp:Repeater>
    </div>
        <center>
            <cc:PagerV2_8 ID="pager1" runat="server" OnCommand="pager_Command" 
                GenerateGoToSection="False" PageSize="9" />
        </center>
    
</div>
